<extend name="common/base" />
<block name="resource">
    <link href="__ASSET__/Home/v4/src/css/videoCommon.css" rel="stylesheet">
    <link href="__ASSET__/Home/v4/src/css/home.css" rel="stylesheet">
    <link href="__ASSET__/Home/v4/src/css/explore.css" rel="stylesheet">
    <link href="__ASSET__/Home/v4/src/css/Visitor.css" rel="stylesheet">
    <!--[if lt IE 9]>
      <script src="//cdn.bootcss.com/html5shiv/3.7.2/html5shiv.min.js"></script>
      <script src="//cdn.bootcss.com/respond.js/1.4.2/respond.min.js"></script>
    <![endif]-->
</block>
<block name="content">
    <div class="main container" style="padding-left:0;padding-right:0;"> 
        <div class="banner ajax_banner">
            <i class="banner-cancle" onclick="closeBanner(this)" title="关闭"></i>
        </div>
        <div class="main-right left black-transparent-bg bodadiustb">
            <!--左边板块-->
            <dl class="channel-sorts blue03 font14 left nav_left nav_left_top" data-flage="true">
                <dt class="colorthree">频道分类</dt>
                <volist name="topics" id="topic">
                    <dd data-id="{$topic.id}">{$topic.title}</dd>
                </volist>
            </dl>
            <!--中间板块-->
            <div class="right-box right">
                <ul class="homepage-hotvideo">
                </ul>
                <!--加载等待-->
                <div class="load-more load-more-video" style="display:block;background:#fff;height:40px;line-height:40px;">
                    <i><img src="__ASSET__/Home/v4/src/images/loading-white.gif" alt="正在加载，请稍候..."/></i>
                    <span>正在加载，请稍候...</span>
                </div>
                <!--分页-->   
                <div class="page visitor_page">
                    <ul>
                    </ul>
                </div>
            </div>
        </div>
        <!--右边板块-->
        <div class="main-left right nomargin">
            <!--个人板块-->
            <div class="left-position">
                <include file="Template/home_self" />
                <!--下载按钮组-->
                <div class="download-btns">
                   <a onclick="_hmt.push(['_trackEvent', 'PC工具下载', '主页', 'PC工具']);" href="/download-pc" style="outline:none;"  target="_blank" class="font14 tan tan-gradient-bg">
                     <span>下载录制工具</span>
                     <span>download</span>
                   </a> 
                   <a href="javascript:void(0)" onclick="downloadplay()" class="font14 blue-black blue-gradient-bg">
                     <span>下载APP</span>
                     <span>download</span>
                   </a> 
                </div>
                <include file="Template/home_active_user" />
                <include file="Template/home_races" />
            </div>
        </div>
    </div>
</block>
<block name="component">
    <script src="__ASSET__/Home/v4/lib/js/jquery.cookie.js"></script>
    <script src="__ASSET__/Home/v4/lib/js/jquery.zclip.min.js"></script>
    <script src="__ASSET__/Home/v4/lib/js/jwplayer.js"></script>
    <script src="__ASSET__/Home/v4/lib/js/date_format.js"></script>
    <script src="__ASSET__/Home/v4/lib/js/face.js?v=1.0"></script>
    <script src="__ASSET__/Home/v4/dist/js/close-advertise.js?v=1.0"></script>
    <script src="__ASSET__/Home/v4/dist/js/set_common_bg.js?v=1.0"></script>
    <script type="text/javascript">
        window._THIS = {
            videosLoadUrl : "{:U('Home/Visitor/videolist')}",
            dolike : "{:U('Home/like/dolike')}",  //点赞
            unlike : "{:U('Home/like/unlike')}",  //取消点赞
            other:"/user-",    //他人主页
            dofollow : "{:U('Home/follow/dofollow')}",   //关注
            unfollow : "{:U('Home/follow/unfollow')}",   //取消关注
            add : "{:U('Home/favour/add')}",             //收藏
            undo : "{:U('Home/favour/undo')}",           //取消收藏
            getCommentList: "{:U('Home/video/getCommentList')}", //获取评论
            addComment : "{:U('Home/video/comments')}",          //添加评论
            shareUrl : "/video-",               //视频分享地址
            VideoPlay:"{:C('LOCAL_DOMAIN')}/video-play-",             //视频复制地址
            relationVideoUrl : "{:U('Home/share/video')}",
            videoLink : "/video-",
            getUser:"{:U('api/top/user')}",
        };
        window.bannerUrl = "/api/a_d/{$adCode}";
    </script>
    <script>
     $(function(){
           load_ad();
           if($(".bodadiustb .nav_left").length>0){
                $(".bodadiustb .nav_left dd").eq(0).addClass('active');
           }
           $(".bodadiustb .nav_left dd").hover(function(){
                   $(this).addClass('add_active');
                },function(){
                   $(this).removeClass('add_active');
           })
     })
     var nav_left_t=$(".nav_left_top").position().top;
     $(window).scroll(function(){
          var scrollTop=$(document).scrollTop();
          var nav_left_top=$(".nav_left_top")[0].getBoundingClientRect().top;
          if(nav_left_t<scrollTop){
               $(".nav_left_top").css({'position':'fixed','top':'50px'});
          }else{
              $(".nav_left_top").removeAttr("style");
          }    
     })
    function downloadplay(){
            layer.open({
              type: 1,
              title: false,
              closeBtn: 1,
              shadeClose: true,
              content: '<img src="__ASSET__/Home/v4/src/images/erweima.png" alt="扫描下载66playAPP">'
            });
            _hmt.push(['_trackEvent', 'APP下载', '主页', 'APP']);
    }
    </script>
    <script src="__ASSET__/Home/v4/dist/js/visitor_data.js?v=1.0.3"></script>
    <script src="__ASSET__/Home/v4/dist/js/active_user.js?v=1.0.1"></script>
</block>